package com.dpp.controller.user;

import com.dpp.context.BaseContext;
import com.dpp.result.Result;
import com.dpp.service.ProductInfoService;
import com.dpp.service.ShopService;
import com.dpp.vo.HomeVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
@RequestMapping("/user/shop")
@CrossOrigin
public class ShopInfoController {
    @Autowired
    private ShopService shopService;
    @GetMapping("/getShops")
    public Result getShops(){
        return shopService.selectAll();
    }
}
